<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<core:menu attributeName="firstMenus" parentId="-1" />
<core:sysParam sysParamCode="DEFAULT_MENU" outPutToJsp="false" attributeName="defaultMenuId" />
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<title><core:sysParam sysParamCode="COMPANY_NAME" outPutToJsp="true" /></title>
<link rel="stylesheet" href="css/zTreeStyle/zTreeStyle.css" type="text/css" />
<link href="themes/default/style.css" rel="stylesheet" type="text/css" media="screen" />
<link href="themes/css/core.css" rel="stylesheet" type="text/css" media="screen" />
<link href="themes/css/print.css" rel="stylesheet" type="text/css" media="print" />
<link href="uploadify/css/uploadify.css" rel="stylesheet" type="text/css" media="screen" />
<link rel="shortcut icon" href="favicon.ico" />
<style type="text/css">
#header {
	height: 85px
}

#leftside,#container,#splitBar,#splitBarProxy {
	top: 90px
}
</style>
<script src="js/speedup.js" type="text/javascript"></script>
<script src="js/jquery-1.7.1.js" type="text/javascript"></script>
<script src="js/jquery.cookie.js" type="text/javascript"></script>
<script src="js/jquery.validate.js" type="text/javascript"></script>
<script src="js/jquery.bgiframe.js" type="text/javascript"></script>
<script src="xheditor/xheditor-1.1.12-zh-cn.min.js" type="text/javascript"></script>
<script src="uploadify/scripts/swfobject.js" type="text/javascript"></script>
<script src="uploadify/scripts/jquery.uploadify.v2.1.0.js" type="text/javascript"></script>

<script src="js/dwz.min.js" type="text/javascript"></script>
<script src="js/dwz.regional.zh.js" type="text/javascript"></script>
<script src="js/jquery.ztree.core-3.1.min.js" type="text/javascript"></script>
<!--<script src="js/jquery.ztree.excheck-3.1.min.js" type="text/javascript"></script>
		-->
<script type="text/javascript">
	$(function() {
		DWZ.init("dwz.frag.xml", {
			loginUrl : "login.jsp", // 跳到登录页面
			debug : false, // 调试模式 【true|false】
			callback : function() {
				initEnv();
				$("#themeList").theme({
					themeBase : "themes"
				});
			}
		});
	});
	//清理浏览器内存,只对IE起效,FF不需要
	if ($.browser.msie) {
		window.setInterval("CollectGarbage();", 10000);
	}
</script>
</head>
<body>
	<div id="layout">
		<div id="header">
			<div class="headerNav">
				<a class="logo" href="javascript:void(0)">logo</a>
				<ul class="nav">
					<li><span style="color: #B9CCDA;">当前用户:<security:authentication property="name" /></span></li>
					<li><a href="${ctx}/common/changepwd.html" target="dialog">修改密码</a></li>
					<li><a href="${ctx}/j_spring_security_logout">退出</a></li>
				</ul>
				<ul class="themeList" id="themeList">
					<li theme="default">
						<div class="selected">蓝色</div>
					</li>
					<li theme="green">
						<div>绿色</div>
					</li>
				</ul>
			</div>
			<div id="navMenu">
				<ul>
					<c:forEach items="${firstMenus}" var="menu">
						<li <c:if test="${menu.id eq defaultMenuId}">class="selected"</c:if>><a
							href="${ctx}/common/sidebar.jsp?cm=${menu.id}"><span>${menu.name}</span> </a></li>
					</c:forEach>
				</ul>
			</div>
		</div>
		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse">
						<div></div>
					</div>
				</div>
			</div>
			<div id="sidebar">
				<div class="toggleCollapse">
					<h2>主菜单</h2>
					<div>收缩</div>
				</div>
				<%@ include file="/common/sidebar.jsp"%>
			</div>
		</div>
		<div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent">
						<!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:void(0)"><span><span class="home_icon">我的主页</span>
								</span> </a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div>
					<!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div>
					<!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:void(0)">我的主页</a></li>
				</ul>
				<div class="navTab-panel tabsPageContent layoutBox">
					<div></div>
				</div>
			</div>
		</div>
	</div>
	<div id="footer">
		<core:sysParam sysParamCode="COMPANY_FOOTER_COPYRIGHT" outPutToJsp="true" />
		<a href='<core:sysParam sysParamCode="COMPANY_FOOTER_URL" outPutToJsp="true"/>' target="_blank"> <core:sysParam
				sysParamCode="COMPANY_FOOTER_NAME " outPutToJsp="true" /></a>
	</div>
</body>
</html>